package com.th.admin.servlet;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * @author ThreePure
 * @date 2022/4/20 10:57
 * @description: TODO
 * @since 1.8
 */
@Slf4j
//@WebListener
public class MyServletContextListener implements ServletContextListener {


    @Override
    public void contextInitialized(ServletContextEvent sce) {
        log.info("【MySwervletContextListener监听到项目初始化完成】");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        log.info("【MySwervletContextListener监听到项目销毁】");
    }
}
